﻿using System;
using System.Collections.Generic;

namespace Camc.Quality.Dto.ProcessesEntityDto
{
    /// <summary>
    /// 工序
    /// </summary>
    public class ProcessesDto
    {
        public ProcessesDto() { }
        public ProcessesDto(string originalProcessesId, int processesSequence, string processesName, string processesType, string content,
            string processesCharacteristic, decimal processesWorking, string url)
        {
            OriginalProcessesId = originalProcessesId;
            ProcessesSequence = processesSequence;
            ProcessesName = processesName;
            ProcessesType = processesType;
            ProcessesCharacteristic = processesCharacteristic;
            ProcessesWorking = processesWorking;
            ProcessesExplain = content;
            URL = url;
        }
        public Guid Id { get; set; }

        /// <summary>
        /// 工艺文件Id
        /// </summary>
        public Guid TechniqueEntityId { get; set; }
        /// <summary>
        /// 原PPS工序ID
        /// </summary>
        public string OriginalProcessesId { get; set; }
        /// <summary>
        /// 工序说明
        /// </summary>
        public String ProcessesExplain { get; set; }
        /// <summary>
        /// 工序号
        /// </summary>
        public int ProcessesSequence { get; set; }
        /// <summary>
        /// 工序名称
        /// </summary>
        public string ProcessesName { get; set; }
        /// <summary>
        /// 工序工时
        /// </summary>
        public decimal ProcessesWorking { get; set; }
        /// <summary>
        /// 工序工种
        /// </summary>
        public string ProcessesType { get; set; }
        /// <summary>
        /// 工序性质
        /// </summary>
        public string ProcessesCharacteristic { get; set; }
        /// <summary>
        /// html内容
        /// </summary>
        public string F_HtmlContent { get; set; }
        /// <summary>
        /// URL
        /// </summary>
        public string URL { get; set; }

        public List<WorkStepDto> WorkStepListDto { get; set; }

        //public ICollection<ResourcesDto> ResourcesDto { get; set; }
    }
    /// <summary>
    /// 工步
    /// </summary>
    public class WorkStepDto
    {
        public Guid Id { get; set; }
        public Guid TechniqueEntityId { get; set; }
        public Guid ProcessesEntityId { get; set; }
        /// <summary>
        /// 原PPS工步ID
        /// </summary>
        public string OriginalWorkStepEntityId { get; set; }
        /// <summary>
        /// 工步序号
        /// </summary>
        public int WorkStepNumber { get; set; }
        /// <summary>
        /// 工步名称
        /// </summary>
        public string WorkStepName { get; set; }

        /// <summary>
        /// 工步序号名称
        /// </summary>
        public string WorkStepSerialName { get; set; }
        /// <summary>
        /// 工步内容
        /// </summary>
        public string WorkStepContent { get; set; }
        /// <summary>
        /// 工步工时
        /// </summary>
        public decimal WorkStepWorking { get; set; }
        ///<summary>
        /// 工步性质
        /// </summary>
        public string WorkStepCharacteristic { get; set; }
    }
    /// <summary>
    /// 资源表
    /// </summary>
    //public class ResourcesDto
    //{
    //    public Guid TechniqueEntityId { get; set; }
    //    public Guid ProcessesEntityId { get; set; }
    //    /// <summary>
    //    /// 工序id
    //    /// </summary>
    //    public Guid? WorkStepEntityId { get; set; }
    //    /// <summary>
    //    /// 代号或规格
    //    /// </summary>
    //    public string Specs { get; set; }
    //    /// <summary>
    //    /// 名称
    //    /// </summary>
    //    public string Name { get; set; }
    //    /// <summary>
    //    /// 标准号
    //    /// </summary>
    //    public string StandardNo { get; set; }
    //    /// <summary>
    //    /// 鉴定类别
    //    /// </summary>
    //    public AppraisalType AppraisalType { get; set; }
    //    /// <summary>
    //    /// 资源类型
    //    /// </summary>
    //    public ResourcesType ResourcesType { get; set; }
    //    /// <summary>
    //    /// 资源标准
    //    /// </summary>
    //    public string Standard { get; set; }
    //    /// <summary>
    //    /// 备注
    //    /// </summary>
    //    public string Remark { get; set; }
    //}
}
